import time
import unittest
from selenium import webdriver
from data013.Page.Page import Page
from data013.Page.Page2 import Page2
from ddt import ddt,file_data


@ddt
class MyTestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(2)
        self.driver.quit()
    @file_data('aa.yaml')
    def test_126_001(self,user,pase):
        po = Page(self.driver)
        po.test_126_login(user,pase)
    def test_126_002(self):
        po2 = Page2(self.driver)
        po2.test_126_xiexin()

if __name__ == '__main__':
    unittest.main()
